package com.dataseek.iot.device.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "tenant.day_level")
public class DayLevel {
    @TableId(value = "day_level_id", type = IdType.AUTO)
    private Long dayLevelId;

    @TableField(value = "jar_code")
    private String jarCode;

    @TableField(value = "device_code")
    private String deviceCode;

    @TableField(value = "level")
    private BigDecimal level;

    //创建时间
    @TableField(value="create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "level_vol")
    private BigDecimal levelVol;
}
